﻿using System;
using System.Collections.Generic;
using System.Text;
using CSharp;

namespace CSharp
{
    public class Student : Person
    {
        public double Score { get; set; }

        public int? BedId { get; set; } //面向数据库

        public virtual Bed Bed { get; set; } //面向对象

        //public int TeacherId { get; set; }
        public virtual IList<Teacher> Teachers { get; set; }

        public virtual Classroom Classroom { get; set; }
        //public bool IsFemale { get; set; }
        //public DateTime Enroll { get; set; }

    }
    //public static class ExtensionMethods
    //{
    //    public static void Learn(this Student student, string name)
    //    {
    //        student.Name = name;//name是不改变Student实例方法的基础上，添加进Student类里面，这里将其赋值给属性Name
    //    }
    //}
}






